package bavaria.hightech.banking.lists;

import java.util.Date;
import bavaria.hightech.banking.time.TimeServer;

/**
 * data container for an element of the linked bookings list
 */
public class Booking {
	private final String reason;
	private final Date bookingTime;
	private final long amount;

	/**
	 * default-constructor
	 * @param amount
	 * @param reason
	 */
	public Booking(long amount, String reason) {
		this.amount = amount;
		this.bookingTime = TimeServer.getCalendar().getTime();
		this.reason = reason;
	}

	/**
	 * get the bookingTime
	 * @return
	 */
	public Date getBookingTime() {
		return this.bookingTime;
	}

	/**
	 * get the amount
	 * @return
	 */
	public long getAmount() {
		return this.amount;
	}

	/**
	 * get the reason
	 * @return
	 */
	public String getReason() {
		return this.reason;
	}

}
